package baidu.service;

import baidu.dao.IDCardDistinguishDao;
import baidu.pojo.IDCardDistinguish;
import baidu.pojo.form.IDCardDistinguishAddForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by asus on 2018/12/21.
 */
@Service

public class IDCardDistinguishService {
    @Autowired
    IDCardDistinguishDao idCardDistinguishDao;

    public int addIDCardDistinguish(IDCardDistinguishAddForm map){
        return idCardDistinguishDao.addIDCardDistinguish(map);
    }
    public IDCardDistinguish getIDCardDistinguish(String openId){
        return idCardDistinguishDao.getIDCardDistinguish(openId);
    }
    public Long getIDCardDistinguishNum(String openId){
        return idCardDistinguishDao.getIDCardDistinguishNum(openId);
    }

    public IDCardDistinguish getIDCardDistinguishName(String openId,String realName){
        return idCardDistinguishDao.getIDCardDistinguishName(openId,realName);
    }
}
